package com.pams.mapper;

import com.pams.pojo.entity.Tasks;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface TaskMapper {
    void save(Tasks tasks);

    List<Tasks> list(String currentUsername);

    void delete( Long id);

    void update(Tasks tasks);

    void updateStatus(Long id, Integer status);

    Tasks getTaskById(Long id);

    List<Tasks> getTodayTask(String currentUsername);

    List<Tasks> getdayTask(String currentUsername , LocalDateTime day );
}
